package com.example.spring_ioc.Configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix="student") // 在配置文件中读取前缀为"student"的配置项,并分别进行对应赋值
public class StudentConfig {
    private Integer id;
    private String name;
    private Integer age;
    private List<String> dbtype;
    private Map<String,String> map;
}
